home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1996 September / macformat-041.iso / mac / Shareware City / Applications / DatePack 1.0e / About Workdays < prev    next >
Encoding:
Text File  |  1996-06-08  |  1.1 KB  |  34 lines  |  [TEXT/ttxt]

  1.  
  2. Skript Workdays
  3.  
  4. This script computes the amount of work days between two dates in the Gregorian Calendar.
  5.  
  6. For every year, it first computes the amount of week days (Mo - Fr). Then, the amount of holidays falling on a week day (Mo - Fr) are subtracted.
  7.  
  8. The script uses following extensions:
  9.  
  10. Command                Extension
  11. -------------------------------------
  12. current date           current date
  13. display dialog         display dialog
  14. weekDayG               DatePack
  15. julNrG                 DatePack
  16. julNrToDateG           DatePack
  17. easterG                DatePack
  18.  
  19.  
  20. The script assumes the following settings at runtime
  21. ------------------------------------------------
  22.  
  23. • 'Thursday, January 2, 1992 13:37:04' must be the
  24.      date format returned by current date (can be set in the
  25.         'Date and Time' Control Panel)
  26.  
  27. • Date input works in the format 'm/d/yyyy' only
  28.  
  29. • Input is not verified
  30.  
  31. • The script uses the holidays which are used in the state of Hessia, Germany
  32.  
  33.  
  34. You can alter the functions 'makeFixHolidays' and 'makeVarHolidays' to localize the script to the holidays valid in your area.